package com.glo.quiki.repository;

import com.glo.quiki.model.QuikiPaymentOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class PaymentOrderRepository {

    @Autowired
    private RedisTemplate<String, Object> redisTemplate;

    public QuikiPaymentOrder findById(String id) {
        return (QuikiPaymentOrder)redisTemplate.opsForValue().get(id);
    }

}
